package com.study.authority.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lemon
 * @since 2022-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_department")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 部门编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 部门名称
     */
    private String departmentName;
    /**
     * 部门电话
     */
    private String phone;
    /**
     * 部门地址
     */
    private String address;
    /**
     * 所属部门编号
     */
    private Long pid;
    /**
     * 所属部门名称
     */
    private String parentName;

    /***排序*/
    private Integer orderNum;

    /***是否删除(0-未删除 1-已删除)*/
    private Integer isDelete;


}
